dxp-ux

(0 reviews)

GET queryUsageConsumption - TMF677

This retrieves the usages for CWC BusinessIDs and Panama.

  1. PA - Prepaid: Ericsson & Mynehub System
  2. PA, CWC - Postpaid: Liberate
  3. CWC - Prepaid: Limeware
URL
https://[localhost]:[port]/dxp-ux/v1/{businessId}/queryUsageConsumption
URL PARAMS
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (JM,VC,LC,GD,AG,TC,KY,AI,KN,MS,VG,DM) identifying the business unit.Y
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringAn identifier for the current call chain that can be used to tie together log entries on multiple layers (e.g. client, server, mainframe). This identifier must be designed to be unique across all applications. Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API requestY
QueryParameter
namevaluedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)
usageConsumption.logicalResource.idstringNeed to provide valid MSISDN or SubscriptionId value
Note:
1. Mandatory for Mynehub system
Y (CWC, PA)
searchCriteria.service.@typestringThis indicates the service line of business. possible values are "PREPAID" and "POSTPAID"
Note:
1. Mandatory for Mynehub, CWP - Ericsson, CWC- Limeware expected value "PREPAID"
2. Mandatory for CWC - Liberate+Limeware, CWP- Liberate expected value "POSTPAID"
Y (CWC, PA)
relatedParty.idstringunique identifier of the account. Mandatory when businessIDs contains CWC or PA (liberate) markets and searchCriteria.service.@type is POSTPAIDcond.Y (CWC, PA)
bucket.bucketRelationship.relationshipTypestringThis is used to fetch account level usages. If this query Param is not passed then only ServiceLevel Usages will be retrieved Allowed Values are "BillingAccount"N(CWC, PA)
relatedParty.namestringA related party defines party or party role linked to a specific entity Name of the related entity
Note:
1. Mandatory for Mynehub system
Y (PA)
usageConsumption.bucketRefOrValue.namestringIdentifies the bucketRef name. Expected value: "LOAN"
Note:
1. Mandatory for Mynehub system
Y (PA)
Data Model - Response Data Model
nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)
idstringunique identifierY(PA, CWC)
queryUsageConsumptionDatedatetimeDate when the query was submitted
Note: Mandatory for prepaid advance balance&plans
Y(PA, CWC)
searchCriteriaobjectAn usage consumption enables to know at a given point the balances and the consumption counters related to various buckets (SMS, Voice, Data for example). It could be calculated for a device identified by a public key (msisdn number for a mobile device for example or PSTN or VOIP number for a fix device), for a subscribed offer or option or for an user.Y(PA, CWC)
searchCriteria.service[]arrayService reference, for when Service is used by other entitiesY(PA, CWC)
searchCriteria.service[].idstringunique identifierY(PA, CWC)
searchCriteria.service[].@typestringtype of service <br(example: PREPAID, POSTPAID)Y(PA, CWC)
relatedParty[]arrayReference and role of the related parties for which the usage consumption is requestedN(PA, CWC)
relatedParty[].idstringunique identifierN(PA, CWC)
relatedParty[].@typestringtype of the relatedParty Here it is billingAccountN(PA, CWC)
usageConsumption[]arrayReport with current counters and balancesY(PA, CWC)
usageConsumption[].idstringunique identifierN(PA, CWC)
usageConsumption[].bucketRefOrValue[]arrayBucket(s) included in the offer or option subscribed.Y(PA, CWC)
usageConsumption[].bucketRefOrValue[].idstringUnique Identifier within the server for the bucketY(PA) N(CWC)
usageConsumption[].bucketRefOrValue[].isSharedbooleanTrue if the bucket is shared between several devices or usersY(PA) N(CWC)
usageConsumption[].bucketRefOrValue[].namestringFriendly name to identify the bucketY(PA, CWC)
usageConsumption[].bucketRefOrValue[].descriptionstringText describing the contents of the balance managed byN(PA, CWC)
usageConsumption[].bucketRefOrValue[].remainingValueNamestringRemaining amount in a formatted string for the bucket given in the balance unit (for example 1.9 Gb). This formatted string could be used for display needs for exampleN(PA, CWC)
usageConsumption[].bucketRefOrValue[].statusstringstatus for the bucket. active, expired, suspendedY(PA, CWC)
usageConsumption[].bucketRefOrValue[].usageTypestringdefines the type of the underlying Balance eg data,voice, any currency eg EUR, USD etcY(PA, CWC)
usageConsumption[].bucketRefOrValue[].bucketCounter[]arrayThe consumption counters (called ConsumptionSummary in the SID model) detail for example the different kind of consumption done on the bucket. Note: bucketCounter is only retrieved for POSTPAID.Y(PA, CWC)
usageConsumption[].bucketRefOrValue[].bucketCounter[].counterTypestringType of the consumption counter. We can give for example a counter of the used value for a bucket (counterType=used for example) or the value of the consumption done out of the bucket(s) (counterType=outOfBucket for example)Y(PA, CWC)
usageConsumption[].bucketRefOrValue[].bucketCounter[].valueNamestringValue of the counter in a formatted string used for display needs for exampleN(PA, CWC)
usageConsumption[].bucketRefOrValue[].bucketCounter[].consumptionPeriodobjectA period of time, either as a deadline (endDateTime only) a startDateTime only, or bothN(PA, CWC)
usageConsumption[].bucketRefOrValue[].bucketCounter[].consumptionPeriod.endDateTimedatetimeEnd of the time period, using IETC-RFC-3339 formatN(PA, CWC)
usageConsumption[].bucketRefOrValue[].bucketCounter[].valueobjectAn amount in a given unitY(PA, CWC)
usageConsumption[].bucketRefOrValue[].bucketCounter[].value.amountnumberNumeric value in a given unitY(PA, CWC)
usageConsumption[].bucketRefOrValue[].bucketCounter[].value.unitsstringUnitY(PA, CWC)
usageConsumption[].bucketRefOrValue[].bucketCounter[].@typestringtype of the bucketCounterN(PA, CWC)
usageConsumption[].bucketRefOrValue[].remainingValueobjectAn amount in a given unitY(PA, CWC)
usageConsumption[].bucketRefOrValue[].remainingValue.amountnumberNumeric value in a given unitY(PA, CWC)
usageConsumption[].bucketRefOrValue[].remainingValue.unitsstringUnitY(PA, CWC)
usageConsumption[].bucketRefOrValue[].validForobjectA period of time, either as a deadline (endDateTime only) a startDateTime only, or bothY(PA, CWC)
usageConsumption[].bucketRefOrValue[].validFor.endDateTimedatetimeEnd of the time period, using IETC-RFC-3339 formatY(PA, CWC)
usageConsumption[].bucketRefOrValue[].validFor.startDateTimedatetimeStart of the time period, using IETC-RFC-3339 formatN(PA, CWC)
usageConsumption[].logicalResourceobjectreference to the LogicalResource eg MSISDNY(PA, CWC)
usageConsumption[].logicalResource[].idstringunique identifier
Note: Mandatory for prepaid advance balance&plans
Y(PA, CWC)
usageConsumption[].logicalResource.@typestringtype of logicalResource. Here it is MSISDNY(PA, CWC)
usageConsumption[].@typestringWhen sub-classing, this defines the sub-class Extensible nameY(PA, CWC)
bucketCounter subResource - dataModel
CounterTypedescriptionrequired(mandatory-Y, optional-N, Not applicable- N/A)examples
usedType of the consumption counter. We can give for example a counter of the used value for a bucket (counterType=used for example)Y(PA, CWC){ "counterType": "used", "valueName": "Minutes", "consumptionPeriod": { "endDateTime": "2021-02-28T00:00:00.000-05:00" }, "value": { "amount": 0.00, "units": "MINS" }, "@type": "UnitsUsed" }
allocatedType of the consumption counter. We can give for example a counter of the used value for a bucket (counterType=allocated for example)Y(PA, CWC){ "counterType": "allocated", "valueName": "Minutes", "consumptionPeriod": { "endDateTime": "2021-02-28T00:00:00.000-05:00" }, "value": { "amount": 100.00, "units": "MINS" }, "@type": "UnitsAllocated" }
carriedType of the consumption counter. We can give for example a counter of the used value for a bucket (counterType=carried for example)Y(PA, CWC){ "counterType": "carried", "valueName": "Minutes", "consumptionPeriod": { "endDateTime": "2021-02-28T00:00:00.000-05:00" }, "value": { "amount": 0.00, "units": "MINS" }, "@type": "UnitsCarriedOver" }
Key considerations

Please find the responses in following URL DXP UX - QueryUsageConsumption API

Key considerations for CWC (flow markets)
  1. This is applicable for Mobile POSTPAID and Mobile PREPAID for liberate Customers only.
  2. For CWC Liberate postpaid, data will be retrieved from Liberate and Limeware for BUs(JM,VC,LC,GD,AG,TC,KY,AI,KN,MS,VG,DM). Limeware response gives SAPC balances, whereas liberate provides all balances/usage. Input parameters are service/subscriber number and account number. The response which has usageConsumption[].id are the usage retrieved from Liberate, remaining would be the SAPC balances retrieved from Limeware.
  3. To retrieve data from Liberate. Then service number need to be provided without country code and BU code for all BUs excluding JM. For Jamaica, the serviceNumber should be sent including BU code (i.e 876 for JM).
  4. Current implementation fetches the service level usage for the provided service number and also account level usage for the provided account number. In the response structure, the objects which have "logicalResource" object in usageConsumption arrayObject can be considered as service level usage, the objects which doesn't have "logicalResource" object and @type under usageConsumption arrayObject with name "AccountUsageConsumption" will be considered as account level usages.
  5. for CWC prepaid, data will be retrieved from Limeware for BUs(JM,VC,LC,GD,AG,TC,KY,AI,KN,MS,VG,DM). Limeware response gives all the prepaid balances/usage. Input parameters are service/subscriber number.
key considerations for PA:
  1. Prepaid Data Retrieval:
    • Data will be retrieved from Ericsson with serviceNumber as input.
  2. Postpaid Data Retrieval:
    • Data will be retrieved from liberate with accountNumber and ServiceNumber as input.
  3. Service Number Format:
    • The service number should be provided without country code and BU code (e.g., 66717668).
  4. Account and Service Level Usages - POSTPAID:
    • To retrieve account level and service level usages, queryParameter "bucket.bucketRelationship.relationshipType" should be sent and value must be provided as "BillingAccount".
    • To retrieve the service level usages, queryParameter usageConsumption.logicalResource.id and relatedParty.id must be sent as input.
    • In the response structure, When @type under usageConsumptionObject is "AccountUsageConsumption", It can be considered as account level usage. remaining usageConsumptionObjects will be service levelusages.
  5. Possible Usage Types:
    • POSTPAID: Duration (calls), Volume (data), Number of Calls (SMS)
    • PREPAID: monetary, voice, sms, data, others.
  6. BucketCounters:
    • Retrieved for postpaid accounts/services from Liberate along with remaining amounts. Possible values for counters includes used, allocated, carried.
    • For prepaid, only the remaining amount is retrieved from Ericsson
  7. For all the dateTime fields
    • Any datetime before 1908-04-22 will show offset -05:18
    • Any datetime on or after 1908-04-22 will show offset -05:00
  8. PA-ROAMING: To identify the roaming query usageconsumption. The value of usageConsumption[].bucketRefOrValue[].name should contains 'ROAM"
key considerations for PA(MYNEHUB SYSTEM):
  1. To Retrieve Prepaid Current Loan Balance information "usageConsumption.logicalResource.id" queryParam is mandatory to pass and expected values is MSISDN or Service Number.
  2. "relatedParty.name" queryParam is mandatory to identify the request from which channel, expected value is APP
  3. "usageConsumption.bucketRefOrValue.name" queryParam is mandatory to pass and expected value is "LOAN".
  4. "searchCriteria.service.@type" queryParam is mandatory to pass and expected value is "PREPAID".\
  5. Refer sample example name "PA_UsageConsumption_Prepaid_Myne_and_Ericson" for combine response of mynehub system & ericsson.
  6. Refer sample example name "PA_UsageConsumption_Prepaid_Myne" for only mynehub system.

Reviews